export default {
	toLogin() {
		uni.reLaunch({
		    url: '/pages/publics/login'
		});
	},
	//获取全部导航链接
	getLinks(){
		let that = this
		that.$httpRequest.get({
			that: that,
			url: 'h5/getGuideLinks',
			params: {},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					that.linkList = res.data
				} else {
					
				}
			}
		})
		
	},
	getPageData() {
		let that = this
		that.$httpRequest.get({
			that,
			url: 'h5/getAboutUs',
			params: {
	
			},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					that.netData = res.data.value
					console.log(res.data.value)
				} else {
					that.$toast.alert({
						content: res.message,
						callback: result => {
							if (result.confirm) {
								uni.navigateBack({
									delta: 1
								})
							}
						}
					})
				}
			}
		})
	},
	tagClick(link){
		window.location.href= link
	},
}